{% load static %}


<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="{% static 'qna/css/main.css' %}" type="text/css" rel="stylesheet">
        <link href="{% static 'qna/css/var.css' %}" type="text/css" rel="stylesheet">
        <script src="{% static 'qna/js/jquery.js' %}"></script>
        <link href="{% static 'favicon.ico' %}"  type="image/x-icon" rel="icon">
        <link href="{% static 'qna/css/button.css' %}" type="text/css" rel="stylesheet">
        <title>{% block title %}{% endblock %}</title>
        <meta name="description" content="{% block description %}{% endblock %}">
        {% block head %} {% endblock %}
    </head>
    
<body>
    <header id="header">
        <div class="logo"><a href="/"><img src="{% static 'qna/img/logo.png' %}" alt="" srcset=""></a></div>
        <div class='account'>
            {% if user.is_authenticated %}
                <p class='user'>{{ user.get_username }}</p>
                <p class='userbtn'><a href="{% url 'logout'%}?next={{request.path}}"><img src="{% static 'qna/img/logout.png' %}" alt="logout" srcset=""></a></p>
            {% else %}
                <p class='userbtn'><a href="{% url 'login'%}?next={{request.path}}">Login</a></p>
                <p class='userbtn'><a href="/accounts/signup">Registry</a></p>
            {% endif %}
    </header>
    <div id="content-wrapper">
        {% block content %} {% endblock %}
    </div>
    <footer id="footer">
        </div> 
    </footer>
</body>
</html>